 /**
 * Description: 物资归还记录
 * @author:Hunter
 * @since:1.0.0
 *
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2018-04-08   Hunter       1.0.0     Initial
 */
package com.metro.paperless.app.service.inf;

import java.util.List;

import com.metro.core.service.IService;
import com.metro.core.vo.JsonResult;
import com.metro.core.vo.inf.IResult;
import com.metro.paperless.app.beans.vo.AppMaterialsReturn;
import com.metro.paperless.app.beans.vo.AppReturnDetail;
import com.metro.paperless.app.beans.vo.AppReturnDetailForm;

 /**
 * 物资归还记录<br>
 *
 * @author:Hunter
 * @since:1.0.0
 * @version [1.0.0, 2018-04-08]
 */
public interface IAppMaterialsReturnService extends IService<AppMaterialsReturn>{

	/**
	 * 借出单号获取归还记录
	 * @param lendId
	 * @return
	 */
	public List<AppMaterialsReturn> queryListByLendId(Long lendId);
	
	IResult save(AppReturnDetailForm form ,AppMaterialsReturn materialsReturn);
	
	JsonResult saveOther(AppReturnDetailForm form ,AppMaterialsReturn materialsReturn);
	
	/**
	 * 归还签署之后更新相应记录
	 * @param entity
	 * @param appReturnDetailList
	 * @return
	 */
	IResult updateInfo(AppMaterialsReturn entity, List<AppReturnDetail> appReturnDetailList);
}